<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Public.Master" Inherits="System.Web.Mvc.ViewPage<Owlpal.Models.Newsletter>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h2>Details</h2>
    <% using (Html.BeginForm("SendNewsletter", "Newsletter"))
       { %>
        <%= Html.Hidden("ID", Model.ID) %>
        <input type="submit" value="Send" />
    <%} %>
    <fieldset>
        <legend>Fields</legend>
        <p>
            ID:
            <%= Html.Encode(Model.ID) %>
        </p>
        <p>
            DateCreated:
            <%= Html.Encode(String.Format("{0:g}", Model.DateCreated)) %>
        </p>
        <p>
            DateUpdated:
            <%= Html.Encode(String.Format("{0:g}", Model.DateUpdated)) %>
        </p>
        <p>
            Subject:
            <%= Html.Encode(Model.Subject) %>
        </p>
        <p>
            Body:
            <%= Html.Encode(Model.Body) %>
        </p>
        <p>
            Status:
            <%= Html.Encode(Model.Status) %>
        </p>
    </fieldset>
    <p>
        <%=Html.ActionLink("Edit", "Edit", new { id = Model.ID  }) %> |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

